<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateCoinLog1Table extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('coin_log', function (Blueprint $table) {
            $table->double('remain_recharge_coin', 10, 1)->default(0.0)->comment('当前充值账户余额')->after('coin');
            $table->double('remain_income_coin', 10, 1)->default(0.0)->comment('当前收入账户余额')->after('coin');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('coin_log', function (Blueprint $table) {
            //
        });
    }
}
